<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="template/base.jsp"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style/index.css" media="all">
<script type="text/javascript" src="${basePath}/script/jquery.js"></script>
</head>
<body><div id="body-wrapper"> n<!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar">
			<%@include file="template/left.jsp" %>
		</div> <!-- End #sidebar -->
		
		<!-- 右边 -->
		
		<div id="main-content">
		
			<div class="column-left">
				<div class="content-box">
					<div class="content-box-header">
						<h3 style="cursor: s-resize;">最近动态</h3>
					</div>
					<div class="content-box-content" style="padding-bottom: 10px;">
						<div style="display: block;" class="tab-content default-tab">
							<form action="main!savemessage.action" method="post">
								<textarea name="message.content"></textarea>
								<input type="submit" value="发布" class="button" style="margin-top:10px;"/>
							</form>
						</div>
					</div> 
				</div>
				
				<c:if test="${not empty messageList}">
					<c:forEach items="${messageList}" var="message">
					<div class="me_message">
						<div class="pic">
							<img src="${basePath }/images/pic.jpg" width="36" height="36" />
						</div>
						<div class="type"><img src="${basePath }/images/chat.png"/></div>
						${message.content }<br/>
						<p>${message.user.username } 更新于 ${message.createtime }</p>
					</div>
					</c:forEach>
				</c:if>
				
			</div>
			
			
			
			
			
			
			
			
			<div class="content-box column-right">
				
				<div class="content-box-header">
					<h3 style="cursor: s-resize;">任务列表</h3>
				</div>
				
				<div class="content-box-content">
					
					<div style="display: block;" class="tab-content default-tab">
					
					<c:choose>
						<c:when test="${not empty user.workIssues}">
							<c:forEach items="${user.workIssues}" var="issues">
							<h6><a href="issues!list.action?id=${issues.id }">${issues.title }(${issues.state })</a></h6>
							</c:forEach>
						</c:when>
					</c:choose>
					</div>       
				</div> 
			</div>
			<div class="clear"></div>
			
			
			
			
			
			<div id="footer">
				<small>
						© Copyright 2011 焦作凯盛信息技术有限公司 | Powered by <a href="http://www.kaishengit.com">凯盛软件</a> | <a href="#">Top</a>
				</small>
			</div>
			
		</div>
		
	</div>
  

    <div id="facebox" style="display: none;">       <div class="popup">         <table>           <tbody>             <tr>               <td class="tl"></td><td class="b"></td><td class="tr"></td>             </tr>             <tr>               <td class="b"></td>               <td class="body">                 <div class="content">                 </div>                 <div class="footer">                   <a href="#" class="close">                     <img src="closelabel.gif" title="close" class="close_image">                   </a>                 </div>               </td>               <td class="b"></td>             </tr>             <tr>               <td class="bl"></td><td class="b"></td><td class="br"></td>             </tr>           </tbody>         </table>       </div>     </div>

</body>
</html>
